package ro.ubbcluj.cs.bs.backend.service;

import ro.ubbcluj.cs.bs.backend.model.Author;
import ro.ubbcluj.cs.bs.backend.service.exception.BiblioSpringServiceException;

import javax.ejb.Remote;
import java.util.List;

@Remote
public interface AuthorService {

    List<Author> getAll() throws BiblioSpringServiceException;

    Author getById(Long id) throws BiblioSpringServiceException;

    Author insertAuthor(Author author) throws BiblioSpringServiceException;

    void deleteAuthor(Author author);
}
